<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>jquery-GET请求</title>
</head>
<body>
    <div id="result"></div>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.js"></script>
    <script>
        $(function(){
            $.get('http://localhost:3000/getCity',{},function(res){
                let citys = JSON.parse(res)
                console.log(citys);
                $('#result').html(res)
            })
        })
    </script>
</body>
</html>